package com.im.business.api.offline.controller;

import com.im.business.api.offline.service.OfflineMessageService;
import com.im.business.offline.api.OfflineMessageApi;
import com.im.business.offline.domain.OfflineMessage;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @Created leijun
 * @Date 2021/11/3 8:52 上午
 */
@RestController
public class OfflineMessageController implements OfflineMessageApi {

    @Autowired
    private OfflineMessageService offlineMessageService;

    @Override
    public List<String> selectOfflineSingleMessage(Long receiverId) {
        return offlineMessageService.selectOfflineSingleMessage(receiverId);
    }

    @Override
    public List<String> selectOfflineGroupMessage(Long groupId) {
        return offlineMessageService.selectOfflineGroupMessage(groupId);
    }
}
